<template>
  <view class="previewArea_container">
    <web-view :src="pdfView + url">
      <cover-view class="footer">
        <button open-type="share">
          <cover-image class="img" :src="staticUrl() + '/setting/share.png'"> </cover-image>
        </button>
      </cover-view>
    </web-view>
  </view>
</template>

<script>
// 现在没用
export default {
  data () {
    return {
      pdfView: '',
      url: ''
    }
  },
  onLoad (e) {
    // if (uni.getSystemInfoSync().platform === 'android') {
    //   this.pdfView = 'https://www.xdyy100.com/wholesale/files/resources/pdfjs/web/viewer.html?file='
    // }
    this.pdfView = 'https://www.xdyy100.com/wholesale/files/resources/pdfjs/web/viewer.html?file='
    this.url = decodeURIComponent(e.url)
  }
}
</script>

<style lang="scss" scoped></style>
